home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir26
/
epi601_2.zip
/
FILES07.EXE
/
FIND.EPA
< prev
next >
Wrap
Text File
|
1994-08-22
|
13KB
|
430 lines
_DOS copy user3.txt doc3.txt
%
_DISPLAY
-- LESSON 4 --
FIND/REPLACE AND
CURSOR MOVEMENT COMMANDS
....................................
_ENDDISPLAY
%
_DISPLAY
EPED provides ways to FIND specified words and phrases in a
document, and if you wish, to REPLACE them with another word
or phrase. It also allows you to MOVE the cursor to a speci-
fied location in the document.
There are also several special keystrokes which allow you to
move around the document more quickly than using only the
arrow keys.
_ENDDISPLAY
%
_DISPLAY
The commands covered in this lesson include:
*FIND a word or phrase.
*FIND a word or phrase and REPLACE it with
another.
*MOVE the cursor to a specified page, line
or column.
*MOVE the cursor to the top or bottom of the
file, or the top or bottom of a page.
*Several other commands for more efficient
movement of the cursor: moving a word at a
time; moving to the beginning or end of a line;
moving a page at a time.
_ENDDISPLAY
%
_DISPLAY
Most of these commands can be found in the <F7>-FIND menu.
In addition to using the <F7> menu, there are certain <Ctrl>
key sequences that will allow you to accomplish the same thing.
Both alternatives will be explained in this tutorial.
_ENDDISPLAY
%
_DISPLAY
Let's begin by reviewing the FIND and REPLACE commands.
The FIND command will search the document for the word or
phrase that you specify. EPED can search for a phrase of
up to 67 characters.
_ENDDISPLAY
%
_DISPLAY
Let's review the steps to FIND A WORD using the <F7> menu:
*Press <F7>, select the first option, "Find", and
press <Enter>.
*In the prompt box, type the word or phrase to search
for and press <Enter>.
*Specify the search options. (This will be explained
on the next screen.)
*Press <Enter> and the cursor will move to the first
occurrence of the word.
*Press <Ctrl-L> to find the next occurrence of the word
and so on until the end of the document is reached.
_ENDDISPLAY
%
_DISPLAY
When using the FIND command, you can specify certain
criteria for the search. The search options include:
*U treats upper and lower case letters the same
*B searches BACKWARD from the current cursor
position to the beginning of the file. (If you
do not specify "B", the search proceeds forward
from the current cursor position.)
*W searches for WHOLE WORDS only; otherwise, it will
find patterns within words that match the word
(For example, if W is not specified, a search for
"and" will also find "brand", "standing" etc.)
*L limits searches to the currently marked BLOCK
_ENDDISPLAY
%
_DISPLAY
After typing the name of the word to search for, a
list of the search options will appear in the prompt
box.
To specify the options, type the corresponding letter(s)
in the prompt box. For example, to specify a search for
upper and lower case letters, and for whole words only,
you would simply type "UW" in the prompt box. Press
<Enter> and the search will then begin.
_ENDDISPLAY
%
_DISPLAY
The next screen will take you to a document where you can
practice the FIND command. Before starting the search, you
will want to move the cursor to the beginning of the document.
You can do this by pressing <Ctrl>-<Page Up>.
To review the steps again:
*Press <F7>, select "Find" using the up and down arrow keys
and press <Enter>.
*At the prompt box, type the word to find, and press <Enter>.
*Type the letter(s) corresponding to the desired search
options. Press <Enter> and the cursor will move to the
first occurrence of the word.
*Press <Ctrl-L> to find the next occurrence of the word, and
so on until the end of the document is reached.
_ENDDISPLAY
%
_OPENFILE DOC3.TXT
[<F7>-Find, type word<Enter>, select options<Enter>; <Ctrl-L> for next]
_CLEARALL
%
_DISPLAY
As mentioned earlier, in addition to using the pop-up menus
to invoke commands, there are certain <Ctrl> key sequences
that will perform the same commands. For instance, the FIND
command can be invoked by pressing <F7> and selecting the
"Find" option. The alternate way to invoke the command is to
press <Ctrl-Q F>.
This is true for most of the menu commands. For a complete
list of the <Ctrl> key sequences, see the Epi Info manual.
_ENDDISPLAY
%
_DISPLAY
The steps used to find a word with <Ctrl-Q F> are similar to
those of the <F7> command:
*Press <Ctrl-Q F>. (Hold down the <Ctrl> key and lightly
press Q and then F - then release the <Ctrl> key.)
*Type the word or phrase to search for when the prompt
box is displayed, and press <Enter>.
*Specify the search options.
*Press <Enter> and the first occurrence of the word will
be highlighted. Press <Ctrl-L> to find the next
occurrence of the word.
_ENDDISPLAY
%
_DISPLAY
At the next screen you will return to your document. Search
for several words, trying both the <F7> menu and <Ctrl-Q F>.
Again, before starting the search, move the cursor to the
beginning of the document by pressing <Ctrl>-<Page Up>.
To review the steps again:
*Press either <F7>-Find or <Ctrl-Q F>.
*At the prompt box, type the word to search for, and
press <Enter>.
*Specify the search options.
*Press <Enter> and the first occurrence of the word
will be highlighted. Press <Ctrl-L> to find the next
occurrence of the word.
_ENDDISPLAY
%
_OPENFILE DOC3.TXT
[<F7> or <Ctrl-Q F> to Find a word, <Ctrl-L> for next word]
_CLEARALL
%
_DISPLAY
The FIND AND REPLACE command searches for the word or phrase
you specify and replaces it with another word or phrase.
The procedure for this command is nearly the same as for
FIND, with the additional step of typing the word that will
replace the current word.
_ENDDISPLAY
%
_DISPLAY
There are two ways to invoke the FIND AND REPLACE command:
through the <F7> pop-up menu, or by the <Ctrl-Q A> sequence.
The procedure for using FIND AND REPLACE is:
*Press <F7>, choose the option "Find and Replace" using the
up and down arrow keys and press <Enter> -OR- press
<Ctrl-Q A>.
*At the prompt box, type the word to find and press <Enter>.
Then type the word to replace with and press <Enter>.
*Specify the search options and press <Enter>.
*The cursor will move to the first occurrence of the word.
_ENDDISPLAY
%
_DISPLAY
When using the FIND AND REPLACE command, there are two
additional search options that can be specified:
G searches GLOBALLY; that is, the entire document is
scanned regardless of the current cursor position
N replaces all occurrences of the word automatically;
EPED does not ask for confirmation each time the
word is encountered (N = no ask)
If "N" is not specified, a prompt box will appear each time
the word is encountered. This displays four options: "Y"
directs EPED to replace the word; "N" means do not replace
the word; "A" directs EPED to replace all occurrences of the
word; and "Q" means to quit the find and replace command.
_ENDDISPLAY
%
_DISPLAY
Now you will go back to the document and try the FIND AND
REPLACE command. Once again, move the cursor to the beginning
of the document before proceeding with the following steps:
*Press <F7>, select "Find and Replace" and press <Enter>
-OR- press <Ctrl-Q A>.
*At the prompt box, type the word to find and press <Enter>.
*Then type the word to replace with and press <Enter>.
*Specify the search options and press <Enter>.
*If you specified "No ask", all occurrences of the word will
be automatically replaced. Otherwise, a prompt box will
ask for confirmation of the replacement.
*Press <Ctrl-L> for the next occurrence of the word.
_ENDDISPLAY
%
_OPENFILE DOC3.TXT
[<F7>-Find & Replace -OR- <Ctrl-Q A>, <Ctrl-L> next word]
_CLEARALL
%
_DISPLAY
Now that you're familiar with the FIND and REPLACE commands,
let's move on to another set of commands for moving the
cursor around the document.
Up to this point, you have used the arrow keys to move from
line to line or character to character. This could be very
time consuming if the document is more than a full screen of
text.
Now we'll look at several ways to move more quickly and easily
through the document.
_ENDDISPLAY
%
_DISPLAY
First, here are several commands that will help you to move
within a line of text. To move:
* across a line ONE WORD AT A TIME, hold down the
<Ctrl> key and press the right and left arrow keys.
* to the BEGINNING OF A LINE, press the <Home> key.
* to the END OF A LINE, press the <End> key.
_ENDDISPLAY
%
_DISPLAY
To move the cursor to:
* the TOP OF THE SCREEN, press <Ctrl> and <Home>.
* the BOTTOM OF THE SCREEN, press <Ctrl> and <End>.
_ENDDISPLAY
%
_DISPLAY
Now, you'll return to the document so you can practice
moving the cursor using the commands that were just
introduced. Let's review the commands once again.
To move:
* ONE WORD AT A TIME, press <Ctrl> and the
right or left arrow keys.
* to the BEGINNING OF A LINE, press <Home>.
* to the END OF A LINE, press <End>.
* to the TOP OF THE SCREEN, press <Ctrl>-<Home>.
* to the BOTTOM OF THE SCREEN, press <Ctrl>-<End>.
_ENDDISPLAY
%
_OPENFILE DOC3.TXT
[<Home>; <End>; and <Ctrl> + arrow keys, <Home>, <End>]
_CLEARALL
%
_DISPLAY
Here are several other cursor movement commands. To move:
* UP ONE SCREEN, press <Page Up>.
* DOWN ONE SCREEN, press <Page Down>.
* to the TOP OF THE FILE (i.e., the beginning) press
<Ctrl>-<Page Up> -OR- use the <F7> menu.
* to the BOTTOM OF THE FILE (i.e., the end)
press <Ctrl>-<Page Down> -OR- use the <F7> menu.
Review these commands again, and then practice moving the
cursor at the next screen.
_ENDDISPLAY
%
_OPENFILE DOC3.TXT
[<Page Up>; <Page Down>; <Ctrl> + <Pg Up>,<Pg Dn>; or <F7> menu]
_CLEARALL
%
_DISPLAY
The <F7> menu -OR- the following commands allow you to go to:
*a specific PAGE NUMBER -- <Ctrl-J P>
*a specific LINE NUMBER -- <Ctrl-J L>
*a specific COLUMN NUMBER -- <Ctrl-J C>
_ENDDISPLAY
%
_DISPLAY
To use these commands, press either the <Ctrl> key sequence,
or press <F7>, select the command using the up and down
arrow keys, and press <Enter>.
At the prompt box, type the number of the page, line or
column and press <Enter>. The cursor will move to the
specified location.
The next screen will take you back to the document so that
you can practice these commands.
_ENDDISPLAY
%
_OPENFILE DOC3.TXT
[<F7> menu or <Ctrl-J P>, <Ctrl-J L>, <Ctrl-J C>]
_CLEARALL
%
_DISPLAY
That brings you to the end of Lesson 4. You have been
introduced to many new commands in this lesson. Let's review
them again now:
*To FIND a word, use <F7>-"Find" -OR- <Ctrl-Q F>.
*To find the NEXT word press <Ctrl-L>.
*To REPLACE a word with another, use <F7>-"Find & Replace"
-OR- <Ctrl-Q A>.
_ENDDISPLAY
%
_DISPLAY
The following commands move the cursor around the document.
To move:
* across a line ONE WORD AT A TIME, press <Ctrl>
and right or left arrow key.
* to the BEGINNING OF A LINE, press the <Home> key.
* to the END OF A LINE, press the <End> key.
* to the TOP OF THE SCREEN, press <Ctrl>-<Home>.
* to the BOTTOM OF THE SCREEN, press <Ctrl>-<End>.
_ENDDISPLAY
%
_DISPLAY
To move the cursor:
* UP ONE SCREEN, press <Page Up>.
* DOWN ONE SCREEN, press <Page Down>.
* to the TOP OF THE FILE, press <Ctrl>-<Page Up>
-OR- use the <F7> menu.
* to the BOTTOM OF THE FILE, press
<Ctrl>-<Pg Down> -OR- use the <F7> menu.
_ENDDISPLAY
%
_DISPLAY
To move the cursor to:
* a specific PAGE NUMBER, press <Ctrl-J P>
-OR- the <F7> menu.
* a specific LINE NUMBER, press <Ctrl-J L>
-OR- the <F7> menu.
* a specific COLUMN NUMBER, press <Ctrl-J C>
-OR- the <F7> menu.
_ENDDISPLAY
%
_DISPLAY
This ends lesson four. Now you will return to the
Tutorial Menu to choose another lesson, or to exit
from the tutorial.
_ENDDISPLAY
%
_RUN WPTM.EPA